<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>京东轮播图</title>
    <link rel="stylesheet" href="../CSS_Layout/CSS/reset.css">
    <style>
        .img-list{
            width: 590px;
            height: 470px;
            margin: 100px auto;
            /* 开启相对定位，使ul中的point 可以相对于ul定位，而不是html*/
            position: relative;
        }
        /* 让li 从文档脱离 摞在一起 */
        .img-list li{
            position: absolute;
        }
        /* 通过修改元素的层级来显示指定的图片 */
        .img-list li:nth-child(4){
            z-index: 1;
        }
        
        .pointer{
            position: absolute;
            z-index: 9999;
            bottom: 20px;
            left: 40px;
        }
        .pointer a{
         /* 设置元素向左浮动 */
            float: left;
            width: 10px;
            height: 10px;
            margin: 0 2px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.6);
            border: 2px solid transparent;
            /* 设置边框透明后背景颜色会扩展到边框区域，为了避免这种情况，要设置裁剪 */
            background-clip: content-box;
            
        }
        .pointer a.active,
        .pointer a:hover{
            background-color: #fff;
            /* 设置边框后，元素变大了，布局会和旁边的点不一样，为了解决这个问题，将所有的点都设置边框 */
            border: 2px solid rgba(255, 255, 255, .3);
        }
    </style>
</head>
<body>
    <ul class="img-list">
        <li><a href="javascrpt:;"><img src="./img/05/1.jpg" alt=""></a></li>
        <li><a href="javascrpt:;"><img src="./img/05/2.jpg" alt=""></a></li>
        <li><a href="javascrpt:;"><img src="./img/05/3.jpg" alt=""></a></li>
        <li><a href="javascrpt:;"><img src="./img/05/4.jpg" alt=""></a></li>
        <li><a href="javascrpt:;"><img src="./img/05/5.jpg" alt=""></a></li>
        <li><a href="javascrpt:;"><img src="./img/05/6.jpg" alt=""></a></li>
        <li><a href="javascrpt:;"><img src="./img/05/7.jpg" alt=""></a></li>
        <li><a href="javascrpt:;"><img src="./img/05/8.jpg" alt=""></a></li>

        <div class="pointer">
            <a class="active" href="javascrpt:;"></a>
            <a href="javascrpt:;"></a>
            <a href="javascrpt:;"></a>
            <a href="javascrpt:;"></a>
            <a href="javascrpt:;"></a>
            <a href="javascrpt:;"></a>
            <a href="javascrpt:;"></a>
            <a href="javascrpt:;"></a>
        </div>
    </ul>
</body>
</html>